package com.woniuxy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 佘赛飞
 * @create 2021 -11 -18 8:38 PM
 */
@Controller
@RequestMapping("/ruser")
public class StringAndIntController {
    @RequestMapping("/adduser")
    public ModelAndView adduser(@RequestParam("name") String username,
                                @RequestParam String password,
                                Integer verificationCode) {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("username", "传入的名字是：" + username);
        modelAndView.addObject("password", "传入的密码是：" + password);
        modelAndView.addObject("verificationCode", "传入的名字是：" + verificationCode);
        modelAndView.setViewName("StringAndIntegerview");
        return modelAndView;
    }
}
